// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Resource from 'vue-resource'
import store from './store'
import h5Common from './assets/js/h5Common.js'
import './assets/lib/public.less'

import 'mint-ui/lib/style.css'

import { myAlert} from '@/assets/js/utils.js'

Vue.use(Resource)
Vue.config.productionTip = false

const mixin = {
    methods: {
        myAlert (txt) {
            myAlert(txt)
        }
    }
}

Vue.mixin(mixin)

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    template: '<App/>',
    components: { App }
})
